﻿using DiIoc.Services;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Zenject;

public class ServiceComsumer : MonoBehaviour
{
    IPrintService _printService;
     [Inject]
     private void Init(IPrintService printService)
    {
        _printService = printService;
    }

    void Start()
    {
        _printService.PrintInfo("hi , i am a info msg");
        _printService.PrintWarning("hi , i am a warning msg");
        _printService.PrintError("hi , i am a error msg");
    }
 
}
